package com.feng.cloud.common.exception.system;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName SystemStatus
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/21 20:54
 * @Version 1.0
 **/
@Getter
@AllArgsConstructor
public enum SystemStatus {


    ASPECT_SAVE_LOG(50002,"保存操作日志异常"),
    GENERATOR_CONFIG_NULL(50001,"代码生成配置为空"),
    OPERATION_FAILURE(50000,"操作失败"),
    TABLE_SCHEMA_EMPTY(40013,"tableSchema不能为空"),
    CLIENT_NOT_EXIST(40012,"客户端不存在"),
    CLIENT_ID_EMPTY(40011,"客户端id不能为空"),
    DEPT_ID_EMPTY(40010,"部门id不能为空"),
    MENU_ID_EMPTY(40009,"菜单id不能为空"),
    ROLE_ID_EMPTY(40008,"角色id不能为空"),
    ROLE_NOT_EXIST(40007,"角色不存在"),
    ROLE_NAME_EMPTY(40006,"角色名不能为空"),
    PASSWORD_ERROR(40005,"密码错误"),
    USER_NOT_EXIST(40004,"用户不存在"),
    INVALID_GETTER_METHOD(40003,"无效的getter方法"),
    ID_EMPTY(40002,"id不能为空"),
    USERNAME_EMPTY(40001,"用户名不能为空"),
    UPDATE_FAILED(20001,"更新失败");
    private int status;
    private String message;
}
